home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / glibmm-2.4 / glibmm / signalproxy_connectionnode.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-04-20  |  2.1 KB  |  71 lines

  1. // -*- c++ -*-
  2. #ifndef _GLIBMM_SIGNALPROXY_CONNECTIONNODE_H
  3. #define _GLIBMM_SIGNALPROXY_CONNECTIONNODE_H
  4.  
  5. /* $Id: signalproxy_connectionnode.h,v 1.6 2004/12/18 23:52:44 murrayc Exp $ */
  6.  
  7. /* signalproxy_connectionnode.h
  8.  *
  9.  * Copyright (C) 2002 The gtkmm Development Team
  10.  *
  11.  * This library is free software; you can redistribute it and/or
  12.  * modify it under the terms of the GNU Library General Public
  13.  * License as published by the Free Software Foundation; either
  14.  * version 2 of the License, or (at your option) any later version.
  15.  *
  16.  * This library is distributed in the hope that it will be useful,
  17.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  19.  * Library General Public License for more details.
  20.  *
  21.  * You should have received a copy of the GNU Library General Public
  22.  * License along with this library; if not, write to the Free
  23.  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  24.  */
  25.  
  26. #include <sigc++/sigc++.h>
  27. #include <glibmm/wrap.h>
  28.  
  29. typedef struct _GObject GObject;
  30.  
  31. namespace Glib
  32. {
  33.  
  34. /** SignalProxyConnectionNode is a connection node for use with SignalProxy.
  35.   * It lives between the layer of Gtk+ and libsigc++.
  36.   * It is very much an internal class.
  37.   */
  38. class SignalProxyConnectionNode
  39. {
  40. public:
  41.  
  42.   /** @param slot The signal handler for the glib signal.
  43.    *  @param gobject The GObject that might emit this glib signal
  44.    */
  45.   SignalProxyConnectionNode(const sigc::slot_base& slot, GObject* gobject);
  46.  
  47.   /** Callback that is executed when the slot becomes invalid.
  48.    * This callback is registered in the slot.
  49.    * @param data The SignalProxyConnectionNode object (@p this).
  50.    */
  51.   static void* notify(void* data);
  52.  
  53.   /** Callback that is executed when the glib closure is destroyed.
  54.    * @param data The SignalProxyConnectionNode object (@p this).
  55.    * @param closure The glib closure object.
  56.    */
  57.   static void destroy_notify_handler(gpointer data, GClosure* closure);
  58.  
  59.   gulong connection_id_;
  60.   sigc::slot_base slot_;
  61.  
  62. protected:
  63.   GObject* object_;
  64. };
  65.  
  66. } /* namespace Glib */
  67.  
  68.  
  69. #endif /* _GLIBMM_SIGNALPROXY_CONNECTIONNODE_H */
  70.  
  71.